1001 Secrets for Windows NT Registry
(Publisher: 29th Street Press)
Author(s): Tim Daniels
ISBN: 1882419685
Publication Date: 12/01/97

Previous Table of Contents Next


I-339 If you need to find out DHCP information about a particular client but don’t have access to the DHCP admin tool, you can still get the information by viewing these registry entries remotely.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\<adapter name>\ Parameters\Tcpip
Value Name: DhcpDefaultGateway
Data Type: REG_MULTI_SZ
Value: any valid IP address

This value specifies the default gateway list assigned to the client by the DHCP server.

I-340 Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\<adapter name>\ Parameters\Tcpip
Value Name: DhcpIPAddress
Data Type: REG_SZ
Value: any valid IP address

This value is the IP address assigned to the user via the DHCP server. If the first value is anything other than 0.0.0.0, that value will override the DHCP-assigned value.

I-341 Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\<adapter name>\ Parameters\Tcpip
Value Name: DhcpNameServer
Data Type: REG_SZ
Value: any set of valid IP addresses

This value is the set of name servers that your system uses to resolve DNS queries.

I-342 Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\<adapter name>\ Parameters\Tcpip
Value Name: DhcpServer
Data Type: REG_SZ
Value: any valid IP address

This value is the IP address of the DHCP server that granted your client the IP address that’s stored in the DhcpIPAddress registry value.

I-343 Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\<adapter name>\ Parameters\Tcpip
Value Name: DhcpSubnetMask
Data Type: REG_SZ
Value: any valid subnet mask for the current IP address space

This value is the DHCP Server-assigned subnet mask.

I-344 Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\<adapter name>\ Parameters\Tcpip
Value Name: Lease
Data Type: REG_SZ
Value: <time in seconds>

This value is the number of seconds that the current lease is valid for a given client.

I-345 Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\<adapter name>\Parameters\Tcpip
Value Name: LeaseObtainedTime
Data Type: REG_SZ
Value: number of seconds since 1/1/70

This value is the time in seconds since the current lease was obtained. You need to convert this number to do anything meaningful with it. Several programs available on the Web can convert it for you.

I-346 Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\<adapter name>\ Parameters\Tcpip
Value Name: LeaseTerminatesTime
Data Type: REG_SZ
Value: number of seconds since 1/1/70

This value is the time when the current lease will expire, stored in form of the number of seconds since 1/1/70. Using the remote viewing capabilities of Regedt32.exe, you can view this information on any machine you have access to via the network.


Previous Table of Contents Next